﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QaaSimulation.QSim.Ships.Editor
{
    public partial class QShipModelEditor : Form
    {
        public QShipModelEditor()
        {
            InitializeComponent();
        }

        public QShipModelEditorControl EditorControl
        {
            get
            {
                return qModelEditorControl1;
            }
        }

        private void QModelEditor_Load(object sender, EventArgs e)
        {
            QShipModel model = new QShipModel(20, 20);
            model.SetModelBox(2, 2,  new QCockpitBox());
            model.SetModelBox(1, 3, new QQuartersBox());
            model.SetModelBox(2, 3, new QQuartersBox());
            model.SetModelBox(3, 3, new QQuartersBox());
            model.SetModelBox(1, 4, new QEngineRoomBox());
            model.SetModelBox(2, 4, new QEngineRoomBox());
            model.SetModelBox(3, 4, new QEngineRoomBox());
            qModelEditorControl1.BoundModel = model;
        }
    }
}
